package jcommon.chap1_j2seplus.object;

import java.math.BigDecimal;
import java.util.Calendar;
import java.util.Date;
import java.util.GregorianCalendar;


public class ObjectApp {

	public static void main(String[] args) {
		System.out.println("-------- Test ReflectionStringBuilder  --------");
		testReflectionStringBuilder();
	}
	
	private static void testReflectionStringBuilder() {
		// Create a State
		State va = new State("VA", "Virginia");

		// Create a Birth Date
		Calendar calendar = new GregorianCalendar();
		calendar.set(Calendar.YEAR, 1743);
		calendar.set(Calendar.MONTH, Calendar.APRIL);
		calendar.set(Calendar.DAY_OF_MONTH, 13);
		Date dob = calendar.getTime();
		BigDecimal moneyRaised = new BigDecimal(29382324234.82);

		PoliticalCandidate candidate = new PoliticalCandidate("Jefferson",
				"Thomas", dob, moneyRaised, va);
		System.out.println(candidate);
		System.out.println(candidate.hashCode());
	}
}